<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script type="text/javascript">
    function page(n, s) {
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchFormRole").submit();
        return false;
    }
    $(function(){
        var clinicIndexId=$("#requestClinicIndexId").val();
        if(clinicIndexId!=null&&clinicIndexId!=""){
            getClinicSchedule(clinicIndexId)
        }
    })

    function getClinicSchedule(clinicIndexId) {
        $("#clinicIndexId").val(clinicIndexId);
        $.ajax({
            url: "${ctx}/registration/clinicSchedule/getByClinicIndexId?clinicIndexId=" + clinicIndexId,
            type: 'POST',
            cache: false,
            dataType: 'JSON',
            success: function (data) {
                var outFlags = $("input[type=checkbox]");
                var limitPreNums = $("input[placeholder='限预约号数']");
                var limitNums = $("input[placeholder='限号数']");
                $("#contentTable input").val("");
                $("#contentTable input[type='checkbox']").prop("checked",false);
                if (data.length > 0) {
                     for (var j = 0; j < data.length; j++) {
                        var index = (data[j].index) - 1;
                         if(data[j].dayOfWeek==0){
                             index = (data[j].index)+6;
                         }
                        outFlags.eq(index).prop('checked',true);
                        limitPreNums.eq(index).val(data[j].limitPreNum);
                        limitNums.eq(index).val(data[j].limitNum);
                    }
                } else {

                }
            }
        });
    }

    $(function () {
         $("#btnSubmit").on("click", function () {
            var clinicIndexId = $("#clinicIndexId").val();
            if (clinicIndexId == "" || clinicIndexId == null) {
                toastr.error("请选择号别！");
                return;
            }
            //拿到号别信息
            var outFlags = $(".out_flag");
            //是否选中标志
            var outFlagsChecked = $(".out_flag:checked");
            var outFlagsValue = '';
            if(outFlagsChecked.length<=0){
                confirmExtend("确定要删除门诊安排吗?",function(){
                    confirm(outFlags,outFlagsValue);
                })
            }else{
                confirm(outFlags,outFlagsValue);
            }
         })
        function confirm(outFlags,outFlagsValue){
            outFlags.each(function () {
               if ($(this).is(':checked')) {
                   outFlagsValue = outFlagsValue + 1 + ",";
               } else {
                   outFlagsValue = outFlagsValue + 0 + ",";
               }
           })
           //去除最后一个逗号(1,0,1,)
           outFlagsValue = outFlagsValue.substring(0, outFlagsValue.length - 1);
           $("#outFlag").val(outFlagsValue);
           //拿到限预约号数
           var limitPreNums = $("input[placeholder='限预约号数']");
           var limitPreNumsValue = '';
           limitPreNums.each(function () {
                   var value = $(this).val() == "" || $(this).val() == null ? 0 : $(this).val();
                   limitPreNumsValue = limitPreNumsValue + value + ",";
            })
           limitPreNumsValue = limitPreNumsValue.substring(0, limitPreNumsValue.length - 1);
           $("#limitPreNum").val(limitPreNumsValue);
           //拿到预约号数
           var limitNums = $("input[placeholder='限号数']");
           var limitNumsValue = '';
            limitNums.each(function () {
                    var value = $(this).val() == "" || $(this).val() == null ? 0 : $(this).val();
                   limitNumsValue = limitNumsValue + value + ",";
             })
           limitNumsValue = limitNumsValue.substring(0, limitNumsValue.length - 1);
           $("#limitNum").val(limitNumsValue);
           $("#inputForm").submit();
         }
    })

</script>


<div class="app">
<section class="layout">

<!-- sidebar menu -->

<!-- /sidebar menu -->

<!-- mail sidebar navigation -->
<aside class="sidebar-400 canvas-right bg-default " style="background-color: white">
    <header class="header navbar clearfix bb bg-default pl0 pr0" style="background-color: white">
        <form:form id="searchFormRole" modelAttribute="clinicSchedule" style="padding-top: 10px;padding-left:10px;"
                   onsubmit="return loadDivForm('mainCenterDiv','searchFormRole','${ctx}/registration/clinicSchedule/index');"
                   method="post" class="form-inline">
            <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
            <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
            号别 ：
            <form:input path="clinicIndexName" style="width:100px;" htmlEscape="false" class="form-control"
                        maxlength="30" data-parsley-required="true" value="${clinicIndexName}" />
            <input class="btn btn-primary" type="submit" value="查询号别"/>
            <input id="btnSubmit" class="btn btn-primary" type="button" value="保存出诊安排" style="margin: 0"/>
         </form:form>
        <%--<p class="navbar-text">号别列表</p>--%>
        <%--<div class="btn-group pull-right mr10">--%>
        <%--<button type="button" class="btn btn-sm btn-primary navbar-btn">--%>
        <%--<i class="ti-comment-alt"></i>--%>
        <%--</button>--%>
        <%--<button type="button" class="btn btn-sm btn-primary navbar-btn">--%>
        <%--<i class="ti-help-alt"></i>--%>
        <%--</button>--%>
        <%--</div>--%>
    </header>
    <div class="content-wrap no-p">
        <div class="wrapper">
            <table id="clinicIndexTable" class="table table-bordered mg-t datatable">
                <tbody>
                <c:forEach items="${page.list}" var="clinicIndex">
                    <tr style="text-align: center;" onclick="getClinicSchedule('${clinicIndex.id}')">
                        <td>
                                ${clinicIndex.name}
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
            <div class="pagination">${page}</div>
        </div>

    </div>
</aside>
<!-- /mail sidebar navigation -->
    <section class="main-content" id="rigthCenterDiv">
        <div class="content-wrap">

            <!-- inner content wrapper -->
            <div class="wrapper no-p" style="background-color: white;padding-top:10px;" >
                <section class="panel panel-default">
                    <div class="panel-body">
                        <div class="table-responsive no-border">
                            <form:form id="inputForm" data-parsley-validate="" modelAttribute="clinicSchedule"
                                       onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/registration/clinicSchedule/save','${ctx}/registration/clinicSchedule/index?clinicIndexId='+$('#clinicIndexId').val()+'&clinicIndexName=${clinicIndexName}');"
                                       method="post" class="form-horizontal">
                                <input type="hidden" id="clinicIndexId" name="clinicIndexId" value="">
                                <input type="hidden" name="outFlag" value="" id="outFlag">
                                <input type="hidden" name="limitPreNum" value="" id="limitPreNum">
                                <input type="hidden" name="limitNum" value="" id="limitNum">
                            </form:form>
                            <input type="hidden" id="requestClinicIndexId" value="${clinicIndexId}">
                            <table id="contentTable" class="table table-bordered mg-t">
                                <thead>
                                <tr style="margin: 0">
                                    <th style="width: 9%">
                                        <%--<input id="btnSubmit" class="btn btn-primary" type="submit" value="保存" style="margin: 0"/>--%>
                                    </th>
                                    <th style="width: 8%">星期一</th>
                                    <th style="width: 8%">星期二</th>
                                    <th style="width: 8%">星期三</th>
                                    <th style="width: 8%">星期四</th>
                                    <th style="width: 8%">星期五</th>
                                    <th style="width: 8%">星期六</th>
                                    <th style="width: 8%">星期日</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr style="height: 10%">
                                    <td style="width: 5%">
                                        <label>全天</label>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input type="number" min="0"  class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  type="number"  min="0" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input type="number"  min="0" class="form-control" name="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  type="number"  min="0" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input type="number"   min="0" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  type="number"  min="0" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 5%">
                                        <label>上午</label>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 5%">
                                        <label>下午</label>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0"  type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0"type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 5%">
                                        <label>夜间</label>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>

                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0" type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                    <td style="width: 8%">
                                        <div class="checkbox" style="margin: 0">
                                            <label>
                                                <input type="checkbox" name="out_flag" class="out_flag">
                                            </label>
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input  min="0" type="number" class="form-control" name="limitNum" class="limitNum" style="width:80%;" placeholder="限号数" value="">
                                        </div>
                                        <div class="spinner input-group mb15">
                                            <input   min="0"type="number" class="form-control" name="limitPreNum" class="limitPreNum" style="width:80%;" placeholder="限预约号数" value="">
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </section>
            </div>
            <!-- /inner content wrapper -->

        </div>
    </section>
<!-- main content -->

<!-- /content wrapper -->
</section>
<!-- /main content -->
</section>
</div>

